<template>
	<view class="advanced-label">
		<image v-show="src!==''" :src="src" class="label-icon"></image>
		<view v-show="src===''" class="default-icon"></view>
		<text class="label-text">{{content}}</text>
		<text v-show="ismore" class="lable-more" @click="skipList">查看更多&#62;</text>
	</view>
</template>

<script>
	export default {
		name: "advanced-lable",
		props: {
			src: {
				type: String,
				default: ""
			},
			content: {
				type: String,
				default: ""
			},
			ismore: {
				type: Boolean,
				default: false
			}
		},
		data() {
			return {

			};
		},
		methods: {
			skipList() {
				this.$emit("skiptolist")
			}
		}
	}
</script>

<style lang="scss">
	.advanced-label {
		display: flex;
		flex-direction: row;
		align-items: center;
		.default-icon {
			// margin-left: 30rpx;
			width: 6rpx;
			height: 34rpx;
			background: #E62129;
			border-radius: 3rpx;
		}

		.label-icon {
			// margin-left: 30rpx;
			width: 30rpx;
			height: 30rpx;
		}

		.label-text {
			margin-left: 16rpx;
			font-size: 28rpx;
			font-weight: bold;
			color: #333333;
		}

		.lable-more {
			margin-left: 400rpx;
			font-size: 24rpx;
			font-weight: 500;
			color: #999999;
			// line-height: 36px;
		}
	}
</style>
